﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Kockicka
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
       
        protected void Button1_Click1(object sender, EventArgs e)
        {
            MyService.Service1 r = new MyService.Service1();
           
           string scrstr= r.RndNumber();

           string []rezultat=scrstr.Split('\n');//oddeluvame
           dobien_broj.Text = "<p>Добиен број: " + rezultat[0].ToString() + "</p>";
            rez.Text = "<div id=\"div_za_crtanje\"><p id=\"status\"></p><img src=\"6.png\" id=\"slika\"/></div>";
            //registrirame skriptata koja bila vrnata da se izvrse 
            Page.ClientScript.RegisterStartupScript(this.Page.GetType(), Button1.ID, rezultat[1], true);

        }
    }
}